package cn.chen.数据结构.队列;

public class QueueTest {
    public static void main(String[] args){

        ArrayQueue queue=new ArrayQueue(10);

        queue.addElem(10);
        queue.addElem(9);
        queue.addElem(8);
        queue.addElem(7);
        queue.addElem(6);
        queue.addElem(5);
        queue.addElem(4);
        queue.addElem(3);
        queue.addElem(2);
        queue.addElem(1);

        int i = queue.removeElem();
        queue.addElem(0);

        queue.print();

        int elem = queue.getElem();
        System.out.println();
        System.out.println(elem);
        queue.print();

    }
}
